using System.Collections.Generic;
using System.Text;
using System;
using NHibernate.Collection;
using NHibernate.Mapping;
using Iesi.Collections;
namespace JVLMRP 
{
    public class MRPDetailsOrders
    {
        int detailorderid;
        string masterordercode;
        string productcode;
        float quantity;
        float price;
        float amount;
        string createdusercode;
        DateTime createdtime;
        string modifiedusercode;
        DateTime modifiedtime;

        public MRPDetailsOrders()
        {

        }

        public virtual int Detailorderid
        {
            get { return detailorderid; }
            set { detailorderid = value; }
        }

        public virtual string Masterordercode
        {
            get { return masterordercode; }
            set { masterordercode = value; }
        }

        public virtual string Productcode
        {
            get { return productcode; }
            set { productcode = value; }
        }

        public virtual float Quantity
        {
            get { return quantity; }
            set { quantity = value; }
        }

        public virtual float Price
        {
            get { return price; }
            set { price = value; }
        }

        public virtual float Amount
        {
            get { return amount; }
            set { amount = value; }
        }

        public virtual string Createdusercode
        {
            get { return createdusercode; }
            set { createdusercode = value; }
        }

        public virtual DateTime Createdtime
        {
            get { return createdtime; }
            set { createdtime = value; }
        }

        public virtual string Modifiedusercode
        {
            get { return modifiedusercode; }
            set { modifiedusercode = value; }
        }

        public virtual DateTime Modifiedtime
        {
            get { return modifiedtime; }
            set { modifiedtime = value; }
        }

        public override string ToString()
        {
            String s = "";
            if (detailorderid != null)
                s += "detailorderid : " + detailorderid.ToString() + "\n";
            else
                s += "detailorderid : null\n";
            if (masterordercode != null)
                s += "masterordercode : " + masterordercode.ToString() + "\n";
            else
                s += "masterordercode : null\n";
            if (productcode != null)
                s += "productcode : " + productcode.ToString() + "\n";
            else
                s += "productcode : null\n";
            if (quantity != null)
                s += "quantity : " + quantity.ToString() + "\n";
            else
                s += "quantity : null\n";
            if (price != null)
                s += "price : " + price.ToString() + "\n";
            else
                s += "price : null\n";
            if (amount != null)
                s += "amount : " + amount.ToString() + "\n";
            else
                s += "amount : null\n";
            if (createdusercode != null)
                s += "createdusercode : " + createdusercode.ToString() + "\n";
            else
                s += "createdusercode : null\n";
            if (createdtime != null)
                s += "createdtime : " + createdtime.ToString() + "\n";
            else
                s += "createdtime : null\n";
            if (modifiedusercode != null)
                s += "modifiedusercode : " + modifiedusercode.ToString() + "\n";
            else
                s += "modifiedusercode : null\n";
            if (modifiedtime != null)
                s += "modifiedtime : " + modifiedtime.ToString() + "\n";
            else
                s += "modifiedtime : null\n";
            return s;
        }
    }
}
